<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsTempTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
//        Schema::create('goods_temp', function (Blueprint $table) {
//            $table->increments('id')->comment("ID");
//            $table->integer("class_id")->comment("一级类型ID");
//            $table->integer("type_id")->comment("二级类型ID");
//            $table->string("goods_name",225)->comment("商品名称");
//            $table->text("image")->comment("商品图片");
//            $table->decimal("sell_price",10,2)->default(0)->comment("售价");
//            $table->decimal("original_price",10,2)->default(0)->comment("原价");
//            $table->decimal("vip_price",10,2)->default(0)->comment("尊享价");
//            $table->text("detail")->nullable()->comment("商品详情");
//            $table->integer("store_num")->default(0)->comment("库存");
//            $table->integer("sales_volume")->default(0)->comment("销量");
//            $table->string("sku",200)->comment("规格");
//            $table->timestamps();
//        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('goods_temp');
    }
}
